package com.health.dao;

import com.github.pagehelper.Page;
import com.health.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname SetmealDao
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/3/16 14:47
 * @Author RainGrd
 */
public interface MemberDao {
    List<Member> findAll();

    Page<Member> selectByCondition(@Param("queryString") String queryString);

    int insertMember(Member member);

    int deleteMemberById(@Param("id") Integer id);

    Member findById(Integer id);

    Member findByTelephone(String telephone);

    int updateMember(Member member);

    Integer findMemberCountBeforeDate(String date);

    Integer findMemberCountByDate(String date);

    Integer findMemberCountAfterDate(String date);

    Integer findMemberTotalCount();


}
